import request from '@/utils/request'
import defaultSettings from '@/settings'

export const apiUrlConfig = {
  queryUrl: `${defaultSettings.ctx.authorityApp}/s/userCredentialInfo/search`,
  exportUrl: `${defaultSettings.ctx.authorityApp}/s/userCredentialInfo/search`,
  delUrl: `${defaultSettings.ctx.authorityApp}/s/userCredentialInfo/remove`,
}

// 查询字典类型列表
export function search(query) {
  return request({
    url: `${defaultSettings.ctx.authorityApp}/s/userCredentialInfo/search`,
    method: 'post',
    params: query
  })
}

// 删除字典类型
export function remove(data) {
  return request({
    url: `${defaultSettings.ctx.authorityApp}/s/userCredentialInfo/remove`,
    method: 'get',
    params:data
  })
}

// 添加委任
export function saveAppoint(data) {
  return request({
    url: `${defaultSettings.ctx.authorityApp}/s/userInfo/saveAppoin`,
    method: 'post',
    data:data
  })
}



